<?php

namespace App\Http\Controllers\Home;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;

use DB;

class LayoutController extends Controller
{
    public function layout(){
        $data = DB::table('config') -> first();
        dd($data);
        return view('home.index.layout',['data' => $data]);
    }

    public function index()
    {
    	$sClass = DB::table('t_class') -> get();
    	return view('home.index.layout',['sClass' => $sClass]);
    }
}
